import { dialog } from '@gis/lib/components/antd-dialog/index.js';

export function openUnitsPageList() {
  dialog({
    content: () => import('./unit-page-list.vue'),
    contentProps: {},
    dialogProps: {
      title: '单位列表',
      footer: null,
      size: 'large',
      height: 'fixed',
      bodyStyle: { padding: 0 },
    },
  });
}

export function openUnitDetails(data) {
  dialog({
    content: () => import('./unit-details.vue'),
    contentProps: { data },
    dialogProps: {
      title: '详情',
      footer: null,
    },
  });
}
